package smartfleet.communication.smartfleetobjects;

import java.io.Serializable;

import com.google.android.maps.GeoPoint;

public abstract class GeneralInfo implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -9217126760539166417L;

	private int		geoLat;
	
	private int		geoLong;
	
	private int		id;
	
	private String	ip;
	
	private int		port;
	
	public GeneralInfo(int id, int lat, int lon, String ip, int port) {

		this.port = port;
		this.ip = ip;
		this.id = id;
		this.geoLat = lat;
		this.geoLong = lon;
	}
	
	public int getGeoLat() {

		return this.geoLat;
	}
	
	public int getGeoLong() {

		return this.geoLong;
	}
	
	public int getId() {

		return this.id;
	}
	
	public String getIp() {

		return this.ip;
	}
	
	public int getPort() {

		return this.port;
	}
	
	@Override
	public int hashCode() {

		return this.id;
		
	}
	
	public void setGeoLat(int geoLat) {

		this.geoLat = geoLat;
	}
	
	public void setGeoLong(int geoLong) {

		this.geoLong = geoLong;
	}
	
	public void setId(int id) {

		this.id = id;
	}
	
	public void setIp(String ip) {

		this.ip = ip;
	}
	
	public void setPort(int port) {

		this.port = port;
	}
	
}
